package com.css.zfzx.sjcj.modules.qhdatatemplate.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.sjcj.modules.qhdatatemplate.repository.entity.QhDataTemplateEntity;
import com.css.zfzx.sjcj.modules.qhdatatemplate.viewobjects.QhDataTemplateQueryParams;
import com.css.bpm.platform.sys.dict.repository.entity.DictItemEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * @author tao
 * @date 2020-11-19
 */

public interface QhDataTemplateService {

    public JSONObject queryQhDataTemplates(QhDataTemplateQueryParams queryParams, int curPage, int pageSize);

    public QhDataTemplateEntity getQhDataTemplate(String id);

    public QhDataTemplateEntity saveQhDataTemplate(QhDataTemplateEntity qhDataTemplate);

    public QhDataTemplateEntity updateQhDataTemplate(QhDataTemplateEntity qhDataTemplate);

    public void deleteQhDataTemplates(List<String> ids);

    public void upload(MultipartFile file) throws Exception;

    public void download(String name, HttpServletResponse response) throws IOException;
}
